
package org.lq.his.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.lq.his.dao.MyoDao;
import org.lq.his.pojo.Myo;
import org.lq.his.pojo.UserOrRole;
import org.lq.his.service.MyoService;
import org.springframework.stereotype.Service;

@Service("myoService")
public class MyoServiceImpl implements MyoService {
	@Resource
	private MyoDao myoDao;
	
	

	public void setMyoDao(MyoDao myoDao) {
		this.myoDao = myoDao;
	}

	@Override
	public List<Myo> getListByCondition(int start, int limit, Myo condition, String column, String orderBy) {
		return myoDao.getListByCondition(start, limit, condition, column, orderBy);
	}

	@Override
	public int getCountByCondition(Myo condition) {
		return myoDao.getCountByCondition(condition);
	}

	@Override
	public void add(Myo myo) {

		myoDao.add(myo);
		
	}

	@Override
	public void update(Myo myo) {
		myoDao.update(myo);
		
	}

	@Override
	public Myo getById(Integer id) {
		
		return myoDao.getById(id);
	}

	@Override
	public void deleteMyo(Integer[] ids) {

		myoDao.deleteByIds(ids);
	}

	@Override
	public List<Myo> getAll() {
		
		return myoDao.getAll();
	}




}
